//
//  TourViewLayout.h
//  EasyToTesco2.0
//
//  Created by knew on 2017/5/3.
//  Copyright © 2017年 EasyToTesco. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TourModel.h"

#define kCellTopMargin 8
#define kCellContentMargin 4
#define kCellNameFontSize 16      // 名字字体大小
#define kCellDetailFontSize 12    // 详情字体大小
#define kCellHEIGHT WIDTH * 0.3

#define kTourDetailHeaderHeight HEIGHT * 0.2
#define kNavigationBarHeight 64
#define kTourDetailTableViewCellHeight 94
#define kToueDetailTableViewHeaderHeight 44

#define kTourSellerOrderTableViewCellWidth WIDTH * 0.2
#define kTourSellerOrderTableViewCellHeight 44

@interface TourOrderLastViewLayout : NSObject

@property (nonatomic,assign)CGRect priceRect;
@property (nonatomic,assign)CGRect payOrderRect;

- (instancetype)_initTourOrderLastViewLayout;

@end

#pragma mark -
@interface TourSellOrderTableViewCellLayout:NSObject

@property (nonatomic,strong)TourSellOrderModel *tourSellOrderModel;

@property (nonatomic,assign)CGRect leftLabelRect;
@property (nonatomic,assign)CGRect dataButtonRect;
@property (nonatomic,assign)CGRect cutButtonRect;
@property (nonatomic,assign)CGRect numberLabelRect;
@property (nonatomic,assign)CGRect addButtonRect;
@property (nonatomic,assign)CGRect textFieldRect;

- (instancetype)_initTourSellOrderTableViewCellLayoutWithModel:(TourSellOrderModel *)tourSellerOrderModel;

@end

#pragma mark -
@interface TourSellerDetailCellHeaderLayout : NSObject

@property (nonatomic,assign)CGRect leftViewRect;
@property (nonatomic,assign)CGRect titleRect;

- (instancetype)_initDetailCellHeaderViewLayout;

@end

@interface TourDetailTableViewCellLayout : NSObject

@property (nonatomic,strong)TourProductsModel *tourDetailModel;

@property (nonatomic,assign)CGRect leftTitleRect;
@property (nonatomic,assign)CGRect infoRect;
@property (nonatomic,assign)CGRect moreRect;
@property (nonatomic,assign)CGRect garyTitleRect;
@property (nonatomic,assign)CGRect grayLineRect;
@property (nonatomic,assign)CGRect priceRect;
@property (nonatomic,assign)CGRect payRect;

- (instancetype)_initDetailCellLayoutWithTourProductsModel:(TourProductsModel *)tourDetailModel;

@end

@interface TourDetailHeaderLayout : NSObject

@property (nonatomic,strong)TourDetailModel *detailModel;


@property (nonatomic,assign)CGRect leftImgRect;
@property (nonatomic,assign)CGRect titleRect;
@property (nonatomic,assign)CGRect detailRect;
@property (nonatomic,assign)CGRect phoneRect;
@property (nonatomic,assign)CGRect addressRect;

- (instancetype)_initDetailHeaderLayoutWithTourDetailModel:(TourDetailModel *)tourDetailModel;
@end


#pragma mark - 

@interface TourViewLayout : NSObject

@property (nonatomic,copy)NSString *replaceID;
@property (nonatomic,strong)TourModel *tourModel;

@property (nonatomic,assign)CGRect nameRect;
@property (nonatomic,assign)CGRect detailRect;
@property (nonatomic,assign)CGRect leftRect;

@property (nonatomic,assign)CGFloat height;


- (instancetype)_initLayoutWithTourModel:(TourModel *)tourModel;

@end
